package com.miyu.common.pojo.book;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * 本规则集
 *
 * @author longmy
 * @date 2022/02/25
 */
@Data
@Entity
@Table(name = "book_rule_set")
public class BookRuleSet implements Serializable {
    /** 规则id */
    @Id
    @Column(name = "rule_id", nullable = false, length = 32)
    private String ruleId;
    /** 规则名称 */
    @Column(name = "rule_name", nullable = false, length = 50)
    private String ruleName;
    /** 根来源 */
    @Column(name = "root_source", nullable = true, length = 255)
    private String rootSource;
    /** 根搜索 */
    @Column(name = "root_search", nullable = true, length = 255)
    private String rootSearch;
    /** 根类型 */
    @Column(name = "root_type", nullable = true, length = 20)
    private String rootType;
    /** 规则列表 */
    @Column(name = "rule_book_list", nullable = true, length = 50)
    private String ruleBookList;
    /** 规则列表章 */
    @Column(name = "rule_chapter_list", nullable = true, length = 50)
    private String ruleChapterList;
    /** 是停止 */
    @Column(name = "is_stop", nullable = true, length = 1)
    private String isStop;
    /** 规则集 */
    @Column(name = "rule_set", nullable = true, length = 2000)
    private String ruleSet;
}
